package com.crm.business.admin.log;

import com.crm.business.admin.service.IAdminDeptService;
import com.crm.common.ka.core.common.log.BehaviorEnum;
import com.crm.common.ka.core.common.log.Content;
import com.crm.business.servlet.ApplicationContextHolder;
import com.crm.common.utils.spring.SpringUtils;

public class AdminDeptLog {
    private IAdminDeptService adminDeptService = SpringUtils.getBean(IAdminDeptService.class);

    public Content deleteDept(Integer deptId) {
        String deptName = adminDeptService.getNameByDeptId(deptId);
        return new Content(deptName,"删除了部门:"+deptName, BehaviorEnum.DELETE);
    }
}
